package com.example.demo.strategy;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author cici
 */
@Component
@Slf4j
public class Method2 extends AbstractMethod {

    @Override
    public Integer getType() {
        return Constant.CONSTANT_TWO;
    }

    @Override
    public void method() {
        log.info("do method1 logic");
        commonLogic();
    }
}
